#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main() {
	int arr[3];
	for (int i = 0; i < 3; i++) {
		scanf("%d", arr + i);
	}
	for (int i = 0; i < 2; i++) {
		for (int i = 0; i < 2; i++)
			if (arr[i] < arr[i + 1]) {
				int tmp = arr[i];
				arr[i] = arr[i + 1];
				arr[i + 1] = tmp;
			}
	}
	for (int i = 0; i < 3; i++) {
		printf("%d ", arr[i]);
	}
	return 0;
}